<template>
    <div>
        <TypeNav></TypeNav>
        <ListContainer></ListContainer>
        <Recommend></Recommend>
        <Rank></Rank>
        <Like></Like>
        <Floor v-for="floor in floorList" :key="floor.id" :list="floor"
        :cname="'floor-swiper'+floor.id"
        ></Floor>
        <Brand></Brand>
    </div>
</template>


<script>
import ListContainer from './ListContainer'
import Recommend from './Recommend'
import Rank from './Rank'
import Like from './Like'
import Floor from './Floor'
import Brand from './Brand'
import {mapState, mapActions} from 'vuex'



export default {
    name:'home',
    components: {
        ListContainer,
        Recommend,
        Rank,
        Like,
        Floor,
        Brand,
    },

    computed: {
        ...mapState('home', ['floorList'])
    },

    methods: {
        ...mapActions('home', ['geFloorListDate'])
    },

    mounted() {
        this.geFloorListDate()

    }
}

</script>



<style lang="less" scoped>

</style>